/**
 * 用户的路由模块
 */
const express = require('express');
const router = express.Router();// 创建路由对象
// 导入用户路由处理函数模块
const questionHandler = require('../router_handler/question.js');

// 上传题库
router.post('/addquestion', questionHandler.addquestion);

// 查询题库
router.get('/getquestion', questionHandler.getQuestion);

// 删除题库
router.delete('/deleteQuestion', questionHandler.deleteQuestion);

// 修改题库
router.put('/eqitQuestion/:id', questionHandler.eqitQuestion);

// 将路由对象共享出去
module.exports = router;